package com.bill.gaty.mfidelity.activities;

 
import com.bill.gaty.mfidelity.R;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

@SuppressWarnings("deprecation")
public class HistoriqueMainActivity extends TabActivity {
	private TabHost tabHost;
	private TabSpec tabSpec_historique_gtf,
	tabSpec_historique_compatibilite
	;
	private Intent tabSpec_historique_compatibilite_intent,
	tabSpec_historique_gtf_intent;
	
	 
@Override
protected void onCreate(Bundle savedInstanceState) {
	// TODO Auto-generated method stub
	super.onCreate(savedInstanceState);
	setContentView(R.layout.historique_main_activity_layout);
	tabSpec_historique_compatibilite_intent=new Intent(getApplicationContext(), HistoriqueCompatibiliteActivity.class);
	tabSpec_historique_gtf_intent=new Intent(getApplicationContext(), HistoriqueGtfActivity.class);
	tabHost=getTabHost();
	tabSpec_historique_gtf=tabHost.newTabSpec("tabSpec_historique_gtf")
			.setIndicator(getView(R.layout.historique_gtf_tab_indicator)).setContent(tabSpec_historique_gtf_intent);
	tabSpec_historique_compatibilite=tabHost.newTabSpec("tabSpec_historique_gtf")
			.setIndicator(getView(R.layout.historique_compatibilite_tab_indicator)).
			setContent(tabSpec_historique_compatibilite_intent);
	
	 
	 tabHost.addTab(tabSpec_historique_compatibilite);
	 tabHost.addTab(tabSpec_historique_gtf);
	  
}
public View getView(int viewlayout){
	LayoutInflater ltInflater = getLayoutInflater();
	return ltInflater.inflate(viewlayout, null, false);
}
}
